<template>
  <div id="app">
   <myheader v-show="$store.state.showtop"></myheader>
    <router-view/>
  </div>
</template>

<script>

import myheader from '@/components/myheader/myheader'

export default {
  components:{myheader},
  data(){
    return{
     
    }
  },
  mounted(){
    this.$store.commit('changeshow',{type:'init',flag:true})
  }
}
</script>


<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100%;
}


</style>
